﻿/**
 *    Copyright 2006 - 2011 Opera Software ASA
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 *
 **/


#contextmenu {
  position: fixed;
  z-index: 300;
  display: none;
  padding: 0px;
  min-width: 100px;
  max-width: 300px;
  display: inline-block;
  visibility: hidden;
  list-style-type: none;
  margin: 0;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid #727272;
  background: #fff;
  background-size: auto 100%;
  color: #333;
  text-shadow: 0 1px rgba(255,255,255,0.5);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

#contextmenu ::selection {
  background: none;
}

#contextmenu li {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  padding: 3px 20px 3px 0;
}

#contextmenu li:first-of-type {
  border-top-left-radius: 1px;
  border-top-right-radius: 1px;
}

#contextmenu li:last-of-type {
  border-bottom-left-radius: 1px;
  border-bottom-right-radius: 1px;
}

#contextmenu li.separator {
  padding: 0;
}

#contextmenu li.disabled {
  color: #aaa;
}

#contextmenu .contextmenu-icon {
  display: inline-block;
  vertical-align: middle;
  text-align: center;
  width: 10px;
  height: 9px;
  margin: 0 4px;
  overflow: hidden;
}

#contextmenu li:not(.separator):not(.disabled):hover {
  background-color: #bbcef1;
  color: #000;
  text-shadow: none;
}

#contextmenu li:not(.separator):not(.disabled):active {
  background-color: #598bec;
  color: #fff;
}

#contextmenu hr {
  margin: 0;
  padding: 0;
  height: 1px;
  border: none;
  background-color: rgba(0,0,0,0.2);
  box-shadow: 0 1px #fff;
}

#contextmenu .check {
  background: transparent url("../ui-images/menu_check.png") 50% no-repeat;
}

#contextmenu li:not(.disabled):active .check {
  background: transparent url("../ui-images/menu_check_selected.png");
}

#contextmenu .radio {
  background: transparent url("../ui-images/menu_bullet.png") 50% no-repeat;
}

#contextmenu li:not(.disabled):active .radio {
  background-image: url("../ui-images/menu_bullet_selected.png");
}

